package com.cpi.basilos.unit.view;

import java.io.Serializable;

import com.cpi.basilos.corntype.view.CornTypeView;

public class UnitView implements Serializable {
	private static final long serialVersionUID = -4757704708326751343L;
	private int id;
	private String route;
	private String amount;
	private String date;
	private CornTypeView cornTypeView;
	private String initial;
	private String number;
	private String seals;
	private String originWetness;
	private String guide;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public CornTypeView getCornTypeView() {
		return cornTypeView;
	}
	public void setCornTypeView(CornTypeView cornTypeView) {
		this.cornTypeView = cornTypeView;
	}
	public String getInitial() {
		return initial;
	}
	public void setInitial(String initial) {
		this.initial = initial;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getSeals() {
		return seals;
	}
	public void setSeals(String seals) {
		this.seals = seals;
	}
	public String getOriginWetness() {
		return originWetness;
	}
	public void setOriginWetness(String originWetness) {
		this.originWetness = originWetness;
	}
	public String getGuide() {
		return guide;
	}
	public void setGuide(String guide) {
		this.guide = guide;
	}
	public String getRoute() {
		return route;
	}
	public void setRoute(String route) {
		this.route = route;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getAmount() {
		return amount;
	}
	public void setAmount(String amount) {
		this.amount = amount;
	}
	public String getWagon() {
		StringBuffer sbWagon = new StringBuffer(getInitial().length() + getNumber().length());
		sbWagon.append(getInitial());
		sbWagon.append(getNumber());
		return sbWagon.toString();
	}
	public String getWagon(String middleChar) {
		StringBuffer sbWagon = new StringBuffer(getInitial().length() + middleChar.length()+ getNumber().length());
		sbWagon.append(getInitial());
		sbWagon.append(middleChar);
		sbWagon.append(getNumber());
		return sbWagon.toString();
	}
}